package com.online.teaching.module.admin.user.domian.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.validation.constraints.NotNull;

/**
 * @ClassName : UserAddDTO  //类名
 * @Description :   添加用户时传参//描述
 * @Author : YG  //作者
 * @Date: 2020-11-04 17:58  //时间
 */
@Data
public class StudentAddDTO extends UserAddDTO{

    @ApiModelProperty(value = "学生学号",required = false)
    @NotNull
    private String userAccount;

    @ApiModelProperty("学生名字")
    @NotNull(message = "请输入正确的名字")
    private String stuName;

    @ApiModelProperty("学生年级")
    @NotNull(message = "请输入正确的年级")
    private Integer stuGrade;

    @ApiModelProperty("学生院系")
    @NotNull(message = "请输入正确的院系")
    private String department;

}
